<template>
  <div class="topHeader">
    <div>
      {{  dates}}
    </div>
    <div>
      <img src="@/icon/wifi.png" alt="" />
      <div>
        <div></div>
        <div></div>
        <div></div>
      </div>
    </div>
  </div>
</template>


<script>
export default {
  data() {
    return {
      dates: 0,
    };
  },
  created() {
    let h = new Date().getHours() + ":";
    let m = new Date().getMinutes() 
    this.dates =  h + m 
    setInterval(()=>{
    let h = new Date().getHours() + ":";
    let m = new Date().getMinutes() 
    this.dates =  h + m 
    },10000)
    
  },
};
</script>

<style lang="less" scoped>

.topHeader {
  color: @color4;
  display: flex;
  height: 50rem;
  justify-content: space-around;
  align-items: center;
  font-size: 16rem;
  position: absolute;
  top: 0;
  left: 0;

  img {
    height: 24rem;
    width: 24rem;
  }
  > div:nth-child(1) {
    position: relative;
    left: 25rem;
  }
  > div:nth-child(2) {
    display: flex;
    position: relative;
    left: 248rem;
    > div:nth-child(2) {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      margin-left: 8rem;

      > div:nth-child(1) {
        width: 35rem;
        height: 18rem;
        background-color: @color;
        border-radius: 5rem;
        top: 5rem;
      }
      > div:nth-child(2) {
        width: 25rem;
        height: 12rem;
        background-color: @color4;
        border-radius: 4rem;
        top: 2rem;
        margin-left: -33rem;
      }
      > div:nth-child(3) {
        width: 5rem;
        height: 5rem;
        border-radius: 2rem;
        background-color: @color;
        margin-left: 7rem;
        top: 2rem;
      }
    }
  }
}
</style>